package org.lc.platform.mybatis.manager;


import lombok.extern.slf4j.Slf4j;
import org.lc.platform.mybatis.manager.query.QueryBuilder;


@Slf4j
public class EntityManager<T> {

    private final Class<T> entityClass;

    public EntityManager(Class<T> entityClass) {
        this.entityClass = entityClass;
    }

    public QueryBuilder<T> createQueryBuilder(Class<T> entityClass) {
        return new QueryBuilder<>(entityClass);
    }

    public QueryBuilder<T> createQueryBuilder() {
        return new QueryBuilder<>(this.entityClass);
    }
}
